:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --secondary: #10b981;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --border-radius: 0.375rem;
  --transition: all 0.2s ease;
}

body {
  background-color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.5;
}

.container-fluid {
  max-width: 1400px;
  padding: 2rem;
}

/* Sidebar Styles */
.sidebar-nav {
  margin-bottom: 1.5rem;
}

/* Language Section */
.language-section {
  position: relative;
  z-index: 5;
  margin-bottom: 1rem;
}

/* Borrowed Items Section */
.borrowed-section {
  position: relative;
  z-index: 5;
  margin-top: 1rem;
}

.sidebar-nav .list-group-item {
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  color: var(--dark);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.sidebar-nav a:hover {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.1);
  text-decoration: none;
}

.sidebar-nav i {
  width: 1.25rem;
  text-align: center;
}

/* Staff Section */
.staff-section {
  border-top: 1px solid var(--gray-light);
  margin-top: 1rem;
  padding-top: 1rem;
  position: relative;
  z-index: 6;
}

.staff-section .list-group-item {
  padding-left: 0;
}

/* User Info */
.user-info {
  font-weight: 500;
  color: var(--primary);
}

/* Logout Button */
.btn-logout {
  width: 100%;
  text-align: left;
  padding: 0.5rem;
}

/* Content Area */
.content-area {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-card {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.btn-submit {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--primary-dark);
}

/* Detail Page Styles */
.detail-card {
  padding: 2rem;
}

.detail-title {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.detail-row {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.detail-label {
  font-weight: 600;
  color: var(--dark);
}

.copy-item {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-available {
  color: var(--secondary);
}

.status-reserved {
  color: var(--primary);
}

.status-maintenance {
  color: var(--danger);
}

/* Pagination */
.pagination {
  gap: 0.5rem;
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

.page-link {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar-nav {
    position: static;
    margin-bottom: 2rem;
  }
  
  .col-sm-2, .col-sm-10 {
    width: 100%;
    padding: 0;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.3s ease-out;
}

/* Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.hover\:bg-primary-light:hover {
  background-color: var(--primary-light) !important;
}

/* Rich Text Editor Styles */
.rich-text {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  min-height: 150px;
  font-family: inherit;
  line-height: 1.5;
  transition: var(--transition);
}

.rich-text:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
  outline: none;
}

/* Book Summary Styles */
.book-summary {
  background-color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-light);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.book-summary p {
  margin-bottom: 1rem;
}

.book-summary p:last-child {
  margin-bottom: 0;
}
